<template>
  <div id="app">
    <footer-guide v-show="$route.meta.showFooter"></footer-guide>
    <router-view></router-view>
  </div>
</template>

<script>
import footerGuide from './components/footer/footerGuide'
import { reqUserMessage } from '../src/api/index'
export default {
  components: {
    footerGuide
  },
  methods: {
    // 获取会话信息
    async getUserInfo() {
      const res = await reqUserMessage()
      if (res.code === 0) {
        const data = res.data
        this.$store.dispatch('addUsersAsync', data)
      }
    }
  },
  mounted() {
    this.getUserInfo()
  }
}
</script>
<style lang="less" scoped></style>
